package com.lcm.weam.service.pro;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.lcm.weam.entity.pro.Project;
import com.lcm.weam.entity.req.ProjectMap;
import com.lcm.weam.entity.resp.PageResult;
import com.lcm.weam.entity.sys.FileList;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;

public interface ProjectService {
    String createPro(Project project);

    void editPro(Project project);

    void deletePro(String proid);

    List<Project> selectAllPro(String uid);

    IPage<Project> selectUserPro(String uid, int pageIndex, int pageSize);

    IPage<Project> selectUserProTS(String uid, int pageIndex, int pageSize, ProjectMap projectMap);

    Project intoAPro(String proid);

    boolean checkUser(String proid);

    void scheduledCheck();

    void uploadFileAliOSS(String proid, MultipartFile file, String filename) throws IOException;

    PageResult<FileList> listFiles(String proid, int page, int num);
}
